﻿@model SuperiorModel.FullSetModel
@{
    ViewBag.Title = "满额包邮设置";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<input type="hidden" id="mapRotute" map="map_FullAmountSendSet" />
<style>
    /*控制文本框长度*/
    .layui-upload-productlist img {
        width:60px;
        height:60px;
    }
    .layui-upload-productlist div{
        margin-left: 20px;
        float:left;
        margin-top: 10px;
    }
      .layui-upload-arealist div{
        margin-left: 20px;
        float:left;
        margin-top: 10px;
    }
</style>
<div class="title_ding">

    <p id="location">
        当前位置：
        满额包邮设置
    </p>
</div>
<div class="layui">
    <div class="shopmain">
        <div class="layui-card">
            <div class="layui-card-header">满额包邮设置</div>
            <div class="layui-card-body">
                <div class="layui-form" action="">
                    <div class="layui-form-item">
                        <label for="text_shopname" class="layui-form-label" style="width:118px;">
                            是否开启满额包邮
                        </label>
                        <div class="layui-input-inline" style="width:50%">
                            @if (Model.OptionStatus == 1)
                            {
                                <input type="radio" name="text_status" value="1" title="是" checked>
                                <input type="radio" name="text_status" value="0" title="否" >
                            }
                            else
                            {
                                <input type="radio" name="text_status" value="1" title="是">
                                <input type="radio" name="text_status" value="0" title="否" checked>
                            }
                          
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*</span>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="text_appid" class="layui-form-label" style="width:118px;">
                            单笔订单满(元)
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <input type="text" id="text_amount" value="@Model.Amount" name="text_amount" lay-verify="required|greaterThanZero" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*如果开启满额包邮，设置0为全场包邮</span>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="text_appsecret" class="layui-form-label" style="width:118px;">
                            不参与包邮的商品
                        </label>
                        <div class="layui-input-inline" style="width:10%">
                            <button type="reset" id="btn_choseProudct" class="layui-btn">点击选择</button>
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*不选择默认全部商品</span>
                        </div>
                    </div>
                    <div class="layui-form-item layui-upload-productlist" style="margin-left: 11.4%;" >
                       @foreach (var item in Model.NotHasProductImgs)
                       {
                           <div><img src="@item" /></div>
                       }
                    </div>

                    <div class="layui-form-item">
                        <label for="text_paymentId" class="layui-form-label" style="width:118px;">
                            不参与包邮的地区
                        </label>
                        <div class="layui-input-inline" style="width:10%">
                            <button type="reset" id="btn_choseAreas" class="layui-btn">点击选择</button>
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*不选择默认全部地区</span>
                        </div>
                    </div>
                    <div class="layui-form-item layui-upload-arealist" style="margin-left: 11.4%;">
                        @foreach (var item in Model.NotHasAreaNames)
                        {
                            <div>
                                <span class="layui-badge-rim">@item</span>
                            </div>
                        }
                    </div>

                    <div class="layui-form-item" style="text-align:center;">
                        <div class="layui-input-block" style="margin:0;">
                            <button class="layui-btn" lay-submit lay-filter="add">提交</button>

                        </div>
                    </div>

                </div>

            </div>
        </div>
    </div>
</div>
<input type="hidden" id="hidden_hasNotPids" />
<input type="hidden" id="hidden_hasNotAreas" />
<script src="~/scripts/Marketing/FullAmountSendSet.js"></script>
<script>
    FullAmountSendSetClass.Instance.Init();
</script>